package cn.topcodes.tcsf.admin.domain.entity;

import cn.topcodes.tcsf.admin.commons.domain.IdEntity;
import cn.topcodes.tcsf.admin.commons.generic.OperateLogConfig;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 系统操作日志
 * @author unicorn
 */
@Data
@ToString(callSuper = true)
@OperateLogConfig(generic = false)
@Table(name = "t_sys_operate_log")
public class SysOperateLog extends IdEntity {

    private static final long serialVersionUID = 1L;

    /*用户相关操作*/
    public static final String TYPE_USER = "User";

    /*用户id*/
    @Column(name = "user_id")
    private Long userId;

    /*操作类型*/
    private String type;

    /*操作内容*/
    private String content;

    /*客户端ip*/
    private String ip;

}